Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.setWatcher = function(t) {
    var r = t.data, n = t.watch;
    Object.keys(n).forEach(function(c) {
        for (var o = r, a = c.split("."), u = 0; u < a.length - 1; u++) o = o[a[u]];
        !function t(r, n, c, o, a) {
            var u = r[n];
            null != u && "object" === e(u) && o && Object.keys(u).forEach(function(e) {
                t(u, e, c, o, a);
            });
            Object.defineProperty(r, n, {
                configurable: !0,
                enumerable: !0,
                set: function(e) {
                    c.call(a, e, u), u = e, o && t(r, n, c, o, a);
                },
                get: function() {
                    return u;
                }
            });
        }(o, a[a.length - 1], n[c].handler || n[c], n[c].deep, t);
    });
};

var e = require("../@babel/runtime/helpers/typeof");